package com.nifostasky.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 漫画信息
 *
 * 漫画名
 * 这一章节的漫画页数
 * 这一章节的图片组合地址
 * 封面图片
 * 官网地址
 * 图片名
 * 总的章节数
 */
public class ComicInfo  implements Serializable {
   private String comicName = null;///漫画名
   private int pageNumber;//漫画页数
    private int chapterNumber ;//章节总数
    private String  urlAgo = null;//组合地址的前一部分
    private String urlBefor = null;//组合地址的后一部分
    private String surfacePlotUrl = null;//封面图
    private String officialWebsiteUrl = null;//官网地址
    private String[]  pictureName = null ;//某一章节的漫画所有页数对应的名字
    private List<String[]> chapterName = null;//保存漫画的章节和对应的漫画地址
    public String getComicName() {
        return comicName;
    }

    public void setComicName(String comicName) {
        this.comicName = comicName;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getChapterNumber() {
        return chapterNumber;
    }

    public void setChapterNumber(int chapterNumber) {
        this.chapterNumber = chapterNumber;
    }

    public String getUrlAgo() {
        return urlAgo;
    }

    public void setUrlAgo(String urlAgo) {
        this.urlAgo = urlAgo;
    }

    public String getUrlBefor() {
        return urlBefor;
    }

    public void setUrlBefor(String urlBefor) {
        this.urlBefor = urlBefor;
    }

    public String getSurfacePlotUrl() {
        return surfacePlotUrl;
    }

    public void setSurfacePlotUrl(String surfacePlotUrl) {
        this.surfacePlotUrl = surfacePlotUrl;
    }

    public String getOfficialWebsiteUrl() {
        return officialWebsiteUrl;
    }

    public void setOfficialWebsiteUrl(String officialWebsiteUrl) {
        this.officialWebsiteUrl = officialWebsiteUrl;
    }

    public String[] getPictureName() {
        return pictureName;
    }

    public void setPictureName(String[] pictureName) {
        //设置当前章节的长度,一旦获取了当前章节图片名
        this.setPageNumber(pictureName.length);
        this.pictureName = pictureName;
    }

    public List<String[]> getChapterName() {
        return chapterName;
    }

    public void setChapterName(List<String[]> chapterName) {
        this.setChapterNumber(chapterName.size());
        this.chapterName = chapterName;
    }
}
